.notebookView {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.notebookHeader {
  margin-bottom: 1.5rem;
}

.notebookHeader h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cardCount {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: normal;
}

.notebookActions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btnPrimary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btnPrimary:hover {
  background-color: #2563eb;
}

.btnOutline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: none;
  color: #374151;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btnOutline:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.searchBox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  flex: 1;
  max-width: 300px;
}

.searchBox input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
}

.searchBox i {
  color: #6b7280;
}

.notebookContent {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
}

.cardsList {
  overflow-y: auto;
  max-height: 100%;
  width: 300px; /* 固定卡片列表宽度 */
}

.cardItem {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 300px;
  height: 110px;
  box-sizing: border-box;
  overflow: hidden; /* 确保内容不会溢出 */
  display: flex;
  flex-direction: column;
}

.cardItem:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.selected {
  border-left: 3px solid #1677ff;
  background-color: #f0f7ff;
}

.cardItem h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cardItem p {
  margin: 0 0 4px 0;
  color: #666;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  flex: 1;
}

.cardMeta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 12px;
  margin-top: auto;
}

.cardMeta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btnDelete {
  background: none;
  border: none;
  color: #f43f5e;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.btnDelete:hover {
  background-color: rgba(244, 63, 94, 0.1);
}

.cardEditor {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.editorHeader {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editorHeaderLeft {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.refiningIndicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 0.8rem;
  margin-top: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.cardTitleInput {
  font-size: 1.25rem;
  font-weight: 600;
  border: none;
  outline: none;
  width: 100%;
  margin-right: 1rem;
}

.editorActions {
  display: flex;
  gap: 0.5rem;
}

.editorToolbar {
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 0.25rem;
}

.editorToolbar button {
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: 0.25rem;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
}

.editorToolbar button:hover {
  background-color: #f3f4f6;
}

.editorContent {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.editorContent textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.preview {
  font-size: 0.875rem;
  line-height: 1.5;
}

.preview h1 {
  font-size: 1.5rem;
  margin-top: 0;
}

.preview h2 {
  font-size: 1.25rem;
}

.preview pre {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
}

.preview code {
  font-family: monospace;
}

.preview blockquote {
  border-left: 4px solid #e5e7eb;
  margin: 0;
  padding-left: 1rem;
  color: #6b7280;
}

.editorFooter {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalContent {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 80%;
  width: 900px;
  max-height: 80vh;
  overflow-y: auto;
}

.modalContent h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

.modalButtons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5rem;
}

.btnAccept {
  padding: 8px 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btnAccept:hover {
  background-color: #45a049;
}

.btnReject {
  padding: 8px 16px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btnReject:hover {
  background-color: #d32f2f;
}

.btnClose {
  padding: 8px 16px;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btnClose:hover {
  background-color: #d0d0d0;
} 